package com.yuntian;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 自定义配置类，包含系统所需的各种配置参数
 */
@Component
@Data
public class CustomConfig {

    // 任务授权相关配置
    @Value("${task.auth.client-id:}")
    private String taskAuthClientId;

    @Value("${task.auth.client-secret:}")
    private String taskAuthClientSecret;

    @Value("${task.auth.token-path:}")
    private String taskAuthTokenPath;

    // 数据拉取相关配置
    @Value("${task.pull.data-path:}")
    private String taskPullDataPath;

    @Value("${task.server.pull-finish-path:}")
    private String taskServerPullFinishPath;

    // AB系统数据相关配置 ab Authorization
    @Value("${ab.data.key:}")
    private String abDataKey;

    // 部门相关
    @Value("${ab.data.department.add-url:}")
    private String abDataDepartmentAddUrl;
    @Value("${ab.data.department.update-url:}")
    private String abDataDepartmentUpdateUrl;
    @Value("${ab.data.department.delete-url:}")
    private String abDataDepartmentDeleteUrl;
    @Value("${ab.data.department.query-url:}")
    private String abDataDepartmentQueryUrl;


    //用户相关
    @Value("${ab.data.user.add-url:}")
    private String abDataUserAddUrl;
    @Value("${ab.data.user.update-url:}")
    private String abDataUserUpdateUrl;
    @Value("${ab.data.user.delete-url:}")
    private String abDataUserDeleteUrl;
    @Value("${ab.data.user.query-url:}")
    private String abDataUserQueryUrl;


    /**
     * ab默认密码
     */
    @Value("${ab.data.user.default-password:}")
    private String abDataUserDefaultPassword;

    @Value("${ab.data.storage-token-url:}")
    private String abDataStorageTokenUrl;


    //ab 生成秘钥接口
    @Value("${ab.data.add-token-url:}")
    private String abDataAddTokenUrl;

    // ab 系统登录地址
    @Value("${ab.login.url:}")
    private String abLoginUrl;
    // ab public -key
    @Value("${ab.login.public-key:}")
    private String abLoginPublicKey;

    // 组织默认父节点配置
    @Value("${ab.data.default-parent-department-id:}")
    private String abDataDefaultParentDepartmentId;

    // IDaaS相关配置
    @Value("${idaas.project-id:}")
    private String idaasProjectId;

    @Value("${idaas.jwt.target-provider-id:}")
    private String idaasJwtTargetProviderId;


}

